package com.caishi.lkx.exam.service;

import com.caishi.lkx.exam.model.IndustryModel;
import com.caishi.lkx.exam.vo.IndexIndustryData;
import com.zzw.common.entity.BaseService;
import com.zzw.common.service.NameService;
import com.zzw.common.service.service.SortService;
import com.caishi.lkx.exam.dto.UserPermissionDto;


import java.util.List;
import java.util.Map;

public interface IIndustryService extends BaseService<IndustryModel, String>, NameService<IndustryModel, String>, SortService<IndustryModel> {

    /**
     * 首页行业数据
     *
     * @param industryId
     */
    IndexIndustryData indexData(String industryId);

    /**
     * 首页数据v1，热门考试和推荐考试数据
     *
     * @return
     */
    List<IndexIndustryData> indexDataV1();


    /**
     * 获取热门行业
     *
     * @return
     */
    List<IndustryModel> hotIndustry();

    /**
     * 获取首页试题，试卷数量
     *
     * @return
     */
    Map<String, Integer> indexCountData();

    /**
     * 获取用户有权限的行业
     *
     * @param userId
     * @return
     */
    UserPermissionDto<String> userHaveIndustry(Long localGroupId, Long userGroupId, String userId);

    /**
     * 获取机构的行业权限
     *
     * @param localGroupId
     * @return
     */
    List<String> groupPermission(Long localGroupId, Long userGroupId, String userId);
}
